import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { AppComponent } from './app.component';
import { NgpModule } from "app/ngp-module/ngp-module.module";
import { LoginComponent, MainComponent } from './admin';
import { AdminService, AppService, LocalStorageService } from "app/services";
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
import { HomeComponent } from './admin/home/home.component';
import { AppRoutingModule } from './app-routing.module';
import { IndexComponent } from './admin/index/index.component';
import { HeaderComponent } from './admin/header/header.component';
import { FooterComponent } from './admin/footer/footer.component';
import { SidebarComponent } from './admin/sidebar/sidebar.component';
import { PageHeaderComponent } from './admin/page-header/page-header.component';
import { SideMenusComponent } from './admin/side-menus/side-menus.component';
// import { NgArrayPipesModule, NgStringPipesModule } from 'angular-pipes';

@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    MainComponent,
    HomeComponent,
    IndexComponent,
    HeaderComponent,
    FooterComponent,
    SidebarComponent,
    PageHeaderComponent,
    SideMenusComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    FormsModule,
    HttpModule,
    NgpModule,
    AppRoutingModule,
    // NgArrayPipesModule,
    // NgStringPipesModule,
    NgbModule.forRoot()
  ],
  providers: [
    AdminService,
    AppService,
    LocalStorageService,
    { provide: LocationStrategy, useClass: HashLocationStrategy }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
